package com.bsoft.gol.hcs.enumcase;

/**
 * @author tongtp
 * @version v0.1
 * @package enumcase
 * @className ReportTypeEnum
 * @description 报告类型
 * @create 2021-08-10 20:32
 **/
public enum ReportTypeEnum {

	//	报告类型：1 常规报告 2 微生物报告
	ROUTINE_REPORT((byte) 1, "常规报告"),
	MICROBIOLOGICAL_REPORT((byte) 2, "微生物报告");

	private final Byte type;

	private final String name;

	ReportTypeEnum(Byte type, String name) {
		this.type = type;
		this.name = name;
	}

	public static ReportTypeEnum getEnumByKey(Byte type) {
		for (ReportTypeEnum temp : ReportTypeEnum.values()) {
			if (temp.getType().equals(type)) {
				return temp;
			}
		}
		return null;
	}

	public Byte getType() {
		return type;
	}

	public String getName() {
		return name;
	}
}
